package bavaria.hightech.testit.callback.callback_chris;

public class Class2Impl {
	
	private IFooEvent event;
	
	public Class2Impl(IFooEvent event) {
		this.event = event;
	}
	
	
	public void doIt(){
		//Callback Methode von Class1Impl aufrufen
		event.foo();
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Class2Impl c2impl = new Class2Impl(new Class1Impl());
		c2impl.doIt();

	}

}
